﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Modules_ThongTinCaNhan_Default" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="/admin/resources/js/base.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server">
    </ext:ResourceManager>
    <ext:Viewport runat="server" BodyStyle=" background-color:#fff;" Layout="FitLayout">
        <Items>
            <ext:FormPanel ID="StatusForm" runat="server" Border="true" BodyStyle="padding:10px;">
                <Defaults>
                    <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw">
                    </ext:Parameter>
                    <ext:Parameter Name="Horizontal" Value="92%" Mode="Value">
                    </ext:Parameter>
                </Defaults>
                <TopBar>
                    <ext:Toolbar ID="toolbar1" runat="server">
                        <Items>
                            <ext:Button ID="btnChangPass" runat="server" Text="Cập nhật" Icon="Disk">
                                <DirectEvents>
                                    <Click OnEvent="ChangePassword" Success="Ext.Msg.hide();" Failure="onFailure" Before=" var valid= #{StatusForm}.getForm().isValid(); if (valid) {Ext.Msg.wait('Đang cập nhật dữ liêu...', 'Saving')} return valid; ">
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:TextField runat="server" InputType="Password" ID="txtOldPassWord" FieldLabel="Mật khẩu cũ"
                        AllowBlank="false">
                    </ext:TextField>
                    <ext:TextField InputType="Password" ID="txtNewPassWord" runat="server" FieldLabel="Mật khẩu mới"
                        AllowBlank="false">
                    </ext:TextField>
                    <ext:TextField InputType="Password" ID="txtRenewPassWord" runat="server" FieldLabel="Xác nhận"
                        AllowBlank="false">
                    </ext:TextField>
                </Items>
            </ext:FormPanel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
